<?php


namespace App\HttpController\admin\controller;


use App\HttpController\admin\Model\SiamAuthsModel;
use App\BaseController;
class Index extends BaseController
{


    function index()
    {
        $file = EASYSWOOLE_ROOT.'/vendor/easyswoole/easyswoole/src/Resource/Http/welcome.html';
        if(!is_file($file)){
            $file = EASYSWOOLE_ROOT.'/src/Resource/Http/welcome.html';
        }
        $this->response()->write(file_get_contents($file));
    }

     function aa()
    {
        $model = new SiamAuthsModel();
        $aa = $model->get(1);
        var_dump($aa);
         $this->init();
         $this->assign(["aa"=>1111]);
         $this->fetch("1");
    }
}